package com.mmd.common.component;

import com.mmd.utils.DateUtil;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class DateConvert implements Converter<String, Date> {

    @Override
    public Date convert(String source) {
        return DateUtil.parseDate(source);
    }
}
